package org.basis.algorithm.graph.common;

/**
 * 图的边
 *
 * @author Mr_wenpan@163.com 2021/12/22 21:25
 */
public class Edge {
    /**
     * 边的出发点
     */
    public Node from;
    /**
     * 边的到达点
     */
    public Node to;
    /**
     * 边的权值
     */
    public int weight;

    public Edge() {
    }

    public Edge(Node from, Node to, int weight) {
        this.from = from;
        this.to = to;
        this.weight = weight;
    }
}
